(world instanceof Level _lvl && _lvl.getServer() != null ? _lvl.getServer().getAdvancements()
    .getAdvancement(new ResourceLocation("${generator.map(field$achievement, "achievements")}" )).equals(advancement) : false)